home *** CD-ROM | disk | FTP | other *** search
- *** HTTP.c.ORIG Thu May 12 13:25:33 1994
- --- HTTP.c Thu May 12 13:34:09 1994
- ***************
- *** 40,46 ****
- char *post_data = NULL;
- extern BOOL using_gateway; /* are we using an HTTP gateway? */
- extern BOOL using_proxy; /* are we using an HTTP proxy gateway? */
- !
-
- /* Load Document from HTTP Server HTLoadHTTP()
- ** ==============================
- --- 40,46 ----
- char *post_data = NULL;
- extern BOOL using_gateway; /* are we using an HTTP gateway? */
- extern BOOL using_proxy; /* are we using an HTTP proxy gateway? */
- ! PUBLIC BOOL reloading = NO; /* reloading => send no-cache pragma to proxy */
-
- /* Load Document from HTTP Server HTLoadHTTP()
- ** ==============================
- ***************
- *** 195,201 ****
- StrAllocCat(command, line);
- }
- }
- !
- sprintf(line, "User-Agent: %s/%s libwww/%s%c%c",
- HTAppName ? HTAppName : "unknown",
- HTAppVersion ? HTAppVersion : "0.0",
- --- 195,210 ----
- StrAllocCat(command, line);
- }
- }
- !
- ! /*
- ! * When reloading give no-cache pragma to proxy server to make
- ! * it refresh its cache. -- Ari L. <luotonen@dxcern.cern.ch>
- ! */
- ! if (reloading) {
- ! sprintf(line, "Pragma: no-cache%c%c", CR, LF);
- ! StrAllocCat(command, line);
- ! }
- !
- sprintf(line, "User-Agent: %s/%s libwww/%s%c%c",
- HTAppName ? HTAppName : "unknown",
- HTAppVersion ? HTAppVersion : "0.0",
-